package cn.rkylin.oms.ext.cainiao.item.dao;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.ext.cainiao.item.vo.CainiaoItemVO;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 菜鸟商品DAO实现类
 *
 * @author zhangheng
 * @date 2018/04/3
 */
@Repository(value = "cainiaoItemDAO")
public class CainiaoItemDAOImpl implements CainiaoItemDAO {
    @Autowired
    protected IDataBaseFactory dao;

    private static final String STATEMENT_PAGE_SELECT_BY_CONDITION = "CainiaopageSelectItem";

    /**
     * selectPagedByCondition：根据查询条件获取菜鸟商品汇总列表
     */
    @Override
    public PageInfo<CainiaoItemVO> selectPagedByCondition(int page, int length, CainiaoItemVO queryParamVO) throws Exception {
        return dao.findPage(page, length, STATEMENT_PAGE_SELECT_BY_CONDITION, queryParamVO);
    }



}